<template>
	<uni-forms class="login-form" ref="form">
		<uni-forms-item name="name">
			<input
				type="text"
				placeholder="请输入账号"
				class="uni-input-input"
				placeholder-style="color: #818181"
			/>
		</uni-forms-item>
		<uni-forms-item name="name">
			<input
				type="text"
				placeholder="请输入密码"
				class="uni-input-input"
				placeholder-style="color: #818181"
			/>
		</uni-forms-item>
		<button class="submit-button" @click="Login">登录</button>
	</uni-forms>
</template>

<script setup>
	import { uniFetch } from '@/apis/uni-fetch.js';
	const Login = ()=>{
		uni.utils.toast("成功进入登录页面","success");
		uniFetch.post("/driver/login/account",{
			account:"atrain",
			password:"123456"
		}).then(res=>{
			//console.log(res);
		});
	}
</script>

<style lang="scss" scoped>
	@import './styles.scss';
</style>
